package com.caxxb.entity;

import java.time.LocalDateTime;

public class Order {
    private int order_id;
    private int game_id;
    private LocalDateTime create_time;
    private int user_id;
    private double order_price;
    private String conversion_code;

    public String getConversion_code() {
        return conversion_code;
    }

    public void setConversion_code(String conversion_code) {
        this.conversion_code = conversion_code;
    }

    public Order(int order_id, int game_id, LocalDateTime create_time, int user_id, double order_price, String conversion_code) {
        this.order_id = order_id;
        this.game_id = game_id;
        this.create_time = create_time;
        this.user_id = user_id;
        this.order_price = order_price;
        this.conversion_code = conversion_code;
    }

    @Override
    public String toString() {
        return "Order{" +
                "order_id=" + order_id +
                ", game_id=" + game_id +
                ", create_time=" + create_time +
                ", user_id=" + user_id +
                ", order_price=" + order_price +
                ", conversion_code='" + conversion_code + '\'' +
                '}';
    }

    public Order() {
    }

    public Order(int order_id, int game_id, LocalDateTime create_time, int user_id, double order_price) {
        this.order_id = order_id;
        this.game_id = game_id;
        this.create_time = create_time;
        this.user_id = user_id;
        this.order_price = order_price;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getGame_id() {
        return game_id;
    }

    public void setGame_id(int game_id) {
        this.game_id = game_id;
    }

    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public double getOrder_price() {
        return order_price;
    }

    public void setOrder_price(double order_price) {
        this.order_price = order_price;
    }

}
